package org.dromara.shopping.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.dromara.shopping.domain.ProductRule;
import org.dromara.shopping.mapper.ProductRuleMapper;
import org.dromara.shopping.service.IProductRuleService;

import java.util.List;

/**
 * 商品规则值(规格)Service业务层处理
 *
 * @author Mr.Zhou
 * @date 2024-10-21
 */
@RequiredArgsConstructor
@Service
public class ProductRuleServiceImpl extends ServiceImpl<ProductRuleMapper, ProductRule> implements IProductRuleService {

    @Resource
    private ProductRuleMapper ruleMapper;

    @Override
    public List<ProductRule> getRuleListByCateChildId(Integer cate_child_id) {
        return ruleMapper.getRuleListByCateChildId(cate_child_id);
    }
}
